package util.comunication.interfaces;

import java.io.IOException;
import java.net.UnknownHostException;

import util.comunication.Address;

public interface IReceiveHandler extends Runnable{
	/**
	 * Set address of socket
	 * @param addr
	 */
	public void setAddres(Address addr);
	/**
	 * Set dimension of receive packet
	 * @param dim
	 */
	public void setDimRP(int dim);
	/**
	 * Create socket 
	 * @throws UnknownHostException
	 * @throws IOException
	 */
	public void create() throws UnknownHostException, IOException;
	public void close() throws UnknownHostException, IOException;
}
